package com.yangaobo.service;

import com.github.pagehelper.PageInfo;
import com.yangaobo.dto.CourseInsertDTO;
import com.yangaobo.dto.CoursePageDTO;
import com.yangaobo.dto.CourseUpdateDTO;
import com.yangaobo.entity.Course;
import com.yangaobo.excel.CourseExcel;
import com.yangaobo.vo.CourseVO;

import java.util.List;

/**
 * @author 杨奥博
 */
public interface CourseService {
    int insert(CourseInsertDTO dto);

    Course select(Long id);

    List<CourseVO> list();

    PageInfo<Course> page(CoursePageDTO dto);

    int update(CourseUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    List<CourseExcel> getExcelData();

}
